// 订单模块
import { setItem, getItem } from '@/utils/storage'
const ORDER_KEY = 'RETURN_ORDER_INFO'
export default {
  namespaced:true,
  state:{
    returnOrderInfo: getItem(ORDER_KEY) || {},
  },
  getters:{
    payAmount:state=>state.returnOrderInfo.payAmount,
    receiverPhone:state=>state.returnOrderInfo.receiverPhone,
    memberUsername:state=>state.returnOrderInfo.memberUsername
  },
  mutations:{
    setOrderInfo(state, data) {
      state.returnOrderInfo = data
      setItem(ORDER_KEY, data)
    },
  },
  actions:{
  }
}